package Class.Homemade.damo0523.demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 姚东名
 * Date: 2024-05-23
 * Time: 15:26
 */
public class Dog extends Animal {
    //第一步：子承父类，对父类进行初始化
    public Dog(String name, int age) {
        super(name, age);
    }
    //方法的重写
    @Override
    public void eat() {
        System.out.println(this.name+"在吃猫粮.........");
    }
}
